package com.mornd.gulimall.product.mapper;

import com.mornd.gulimall.product.entity.Attr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mornd.gulimall.product.entity.vo.skuitem.GroupNamesWithAttrs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 商品属性 Mapper 接口
 * </p>
 *
 * @author mornd
 * @since 2023-07-23
 */
@Mapper
public interface AttrMapper extends BaseMapper<Attr> {

    List<GroupNamesWithAttrs> getGroupsAndAttrsBySpuId(Long spuId);
}
